import request from '@/utils/request'

// 获取慢性病种类列表
export const getChronicDiseaseTypeList = (params) => {
  return request.get('/admin/chronicDiseaseType/page', { params })
}

// 新增慢性病种类
export const addChronicDiseaseType = (data) => {
  return request.post('/admin/chronicDiseaseType', data)
}

// 更新慢性病种类
export const updateChronicDiseaseType = (data) => {
  return request.put('/admin/chronicDiseaseType', data)
}

// 删除慢性病种类
export const deleteChronicDiseaseType = (id) => {
  return request.delete(`/admin/chronicDiseaseType/${id}`)
}
